-- GENERATED SPELL FOR [Shadow Vault Boneguard] --


function spell0_30312(pUnit, Event) --@Net,n/a--
pUnit:FullCastSpellOnTarget(12024,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30312', 5268, 1)
end

function Sorts_30312(pUnit, Event)
local choix_sorts_30312 = math.random(0, 0)
if choix_sorts_30312 == 0 then
pUnit:RegisterEvent('spell0_30312', 1, 1)
end
end

function mob30312_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_30312', math.random(1500, 3000), 1)
end

function mob30312_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30312_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30312_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(30312, 1, 'mob30312_Action')
RegisterUnitEvent(30312, 2, 'mob30312_Leave')
RegisterUnitEvent(30312, 3, 'mob30312_Kill')
RegisterUnitEvent(30312, 4, 'mob30312_Die')
